/*
 * Created by Jaren at 2021/10/29 9:18
 */
import 'package:ble_plugin_example/app/routes.dart';
import 'package:ble_plugin_example/operation/operation_controller.dart';
import 'package:ble_plugin_example/operation/operation_view.dart';
import 'package:ble_plugin_example/search/search_controller.dart';
import 'package:ble_plugin_example/search/search_view.dart';
import 'package:get/get.dart';

class Pages {
    static final routes = [
        GetPage(
            name: '/',
            page: () => SearchPage(),
            binding: BindingsBuilder(() {
                Get.lazyPut(() => SearchBLEController());
            }),
            preventDuplicates: true,
        ),
        GetPage(
            name: Routes.OPERATION,
            page: () => OperationPage(),
            binding: BindingsBuilder(() {
                Get.lazyPut(() => OperationController());
            }),
            preventDuplicates: true,
        ),
    ];
}